package bean;

import java.io.Serializable;

/**
 * Created by momochen on 2017-07-31.
 */
public class GatewayProtocol implements Serializable {


    private short head;//包头
    private byte serial;//序列号
    private short lenght;//包长度
    private byte cmd;//命令码
    private byte[] datas;//数据
    private short crc;//校验码

    public short getHead() {
        return head;
    }

    public void setHead(short head) {
        this.head = head;
    }

    public byte getSerial() {
        return serial;
    }

    public void setSerial(byte serial) {
        this.serial = serial;
    }

    public short getLenght() {
        return lenght;
    }

    public void setLenght(short lenght) {
        this.lenght = lenght;
    }

    public byte getCmd() {
        return cmd;
    }

    public void setCmd(byte cmd) {
        this.cmd = cmd;
    }

    public byte[] getDatas() {
        return datas;
    }

    public void setDatas(byte[] datas) {
        this.datas = datas;
    }

    public short getCrc() {
        return crc;
    }

    public void setCrc(short crc) {
        this.crc = crc;
    }
}
